package com.mti.app.controller
{
	import com.mti.app.model.QRCodeProxy;
	import com.mti.app.model.business.EvenementObject;
	
	import org.puremvc.as3.interfaces.ICommand;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class LoadQRCodeCommand extends SimpleCommand implements ICommand
	{
		private var qrcodeProxy:QRCodeProxy;
		
		override public function execute(notification:INotification):void
		{
			qrcodeProxy = facade.retrieveProxy(QRCodeProxy.NAME) as QRCodeProxy;
			
			qrcodeProxy.load(EvenementObject (notification.getBody()));
		}
		
	}
}